package com.nlabs.slickgwt.client;

import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.VerticalPanel;


public class Menu extends PopupPanel {

		private VerticalPanel m_vpane = new VerticalPanel(); 
		 
		
		public Menu() {
			
			setAutoHideEnabled(true);
			//setAnimationEnabled(true);
			setStylePrimaryName("slick-menu");
			this.setWidget(m_vpane);
			
		}
		
		public void addMenuItem(final MenuItem mi){
			
			mi.setMenu(this);
			m_vpane.add(mi);
			
		}
		
		 
	
	
}
